import request from './request'
export function querytree () {
    return request({
      url: '/console/product/queryAllCategoryTree.do',
      method: 'POST'
    })
  }
export function query ({currentPage = 1, perPage = 10,categoryName} = {}) {
  return request({
    url: '/console/product/queryCategoryListPage.do',
    method: 'POST',
    body: {currentPage, perPage,categoryName}
  })
}

export function operation ({id,type} = {}) {
  return request({
    url: '/console/product/operationCategory.do',
    method: 'POST',
    body: {id,type}
  })
}

